<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>意见反馈</title>
    <link rel="stylesheet" href="css/layui.css" media="all">
    <link rel="stylesheet" href="css/doc.css" media="all">
    <link href="css/bootstrap.min.css" rel="stylesheet">
</head>

<body>
<div class="kit-doc">
    <blockquote class="layui-elem-quote">意见反馈</blockquote>
    <table class="layui-table">
        <colgroup>
            <col width="100">
            <col width="100">
            <col width="200">
            <col width="200">
        </colgroup>
        <thead>
        <tr>
            <th>反馈id</th>
            <th>用户id</th>
            <th>反馈内容</th>
            <th>反馈时间</th>
        </tr>
        </thead>
        <tbody>
        <#list feeds.records as feed>
            <tr>
                <td>${feed.id}</td>
                <td>${feed.userId}</td>
                <td>${feed.content}</td>
                <td>${(feed.time?string("yyyy-MM-dd HH:mm:ss"))}</td>
            </tr>
        </#list>
        </tbody>
    </table>
</div>
<div id="demo" style="margin-left: 470px;"></div>
<script src="js/jquery-3.5.1.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/layui.all.js"></script>
<script>
    //获取项目路径，
    function URL() {
        return window.location.protocol + "//" + window.location.host + "/";
    }
    layui.use(['laypage'], function () {
        var laypage = layui.laypage
        laypage.render({
            elem: 'demo'
            , curr: ${feeds.current}    //当前第几页
            , count: ${feeds.total}     //总记录数
            , limit: ${feeds.size}      //每页记录数
            , theme: '#009688'
            , jump: function(obj, first) {
                if (!first) {
                    window.location.href = URL() + "feedBackManage?pageNum=" + obj.curr;
                }
            }
        });
    });
</script>
</body>
</html>